package io.sage.modules.statistics.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.sage.modules.statistics.dao.BStatisticsPressureMapper;
import io.sage.modules.statistics.entity.BStatisticsPressure;
import io.sage.modules.statistics.service.BStatisticsPressureService;

/**
 * 传感器大气压强服务
 * @author xjh
 *
 */
@Service("statisticsPressureService")
public class BStatisticsPressureServiceImpl implements BStatisticsPressureService {

	@Autowired
	private BStatisticsPressureMapper statisticsPressureMapper;

	@Override
	public BStatisticsPressure selectById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteBatchIds(List<Integer> asList) {
		// TODO Auto-generated method stub

	}

	@Override
	public List<BStatisticsPressure> selectStatisticsPressureList(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return statisticsPressureMapper.selectStatisticsPressureList(params);
	}

	@Override
	public int insert(BStatisticsPressure statisticsPressure) {
		statisticsPressure.setCreateTime(new Date());
		statisticsPressure.setIsDeleted(0);
		statisticsPressure.setIsUsed(1);
		return statisticsPressureMapper.insertSelective(statisticsPressure);
	}

	@Override
	public int savePressureList(List<BStatisticsPressure> list) {
		return statisticsPressureMapper.savePressureList(list);
	}

	@Override
	public List<BStatisVo> selectListByWarehouseId(Map params) {
		return statisticsPressureMapper.selectListByWarehouseId(params);
	}

}
